const express = require('express');
const router = express.Router();
const expressJoi = require('@escook/express-joi');
const { add_schedule_schema, get_schedules_schema } = require('../schema/schedule');
const schedule_handle = require('../router_handler/schedule');

router.post('/add', expressJoi(add_schedule_schema), schedule_handle.addSchedule);
router.get('/list', expressJoi(get_schedules_schema), schedule_handle.getSchedules);

module.exports = router;